import { IdSelect, IdSelectProps } from 'utils/id-select'
import { useUsers } from 'utils/use-users'

// export const UserSelect = (props: React.ComponentProps<typeof IdSelect>) => {
export const UserSelect = (props: IdSelectProps) => {
  const { data: users } = useUsers()
  return <IdSelect options={users || []} {...props} />
}
